import { NestFactory } from '@nestjs/core';
import { LoggerService } from './modules/logger/logger.service';
import { AppModule } from './app.module';


async function bootstrap() {
  const app = await NestFactory.create(AppModule, { cors: true });
  // 日志
  const loggerService = app.get(LoggerService);
  app.useLogger(loggerService);
  // 前缀
  app.setGlobalPrefix('lil-heart');
  await app.listen(process.env.PORT ?? 7777);
}
bootstrap();
